package cn.rengy.tpa.wxmp.component;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="xml")
public class AuthBody {
	
	
	private String appid;//第三方平台appid
	
	private int createTime;//时间戳
	
	private String infoType;//component_verify_ticket
	
	private String componentVerifyTicket;
	
	private String authorizerAppid;//授权方appid
	
	private String authorizationCode;//授权码
	
	private String authorizationCodeExpiredTime;//过期时间
	
	private String preAuthCode;//预授权码
	
	@XmlElement(name="AuthorizationCode")
	public String getAuthorizationCode() {
		return authorizationCode;
	}

	public void setAuthorizationCode(String authorizationCode) {
		this.authorizationCode = authorizationCode;
	}
	@XmlElement(name="AuthorizationCodeExpiredTime")
	public String getAuthorizationCodeExpiredTime() {
		return authorizationCodeExpiredTime;
	}

	public void setAuthorizationCodeExpiredTime(String authorizationCodeExpiredTime) {
		this.authorizationCodeExpiredTime = authorizationCodeExpiredTime;
	}
	@XmlElement(name="PreAuthCode")
	public String getPreAuthCode() {
		return preAuthCode;
	}

	public void setPreAuthCode(String preAuthCode) {
		this.preAuthCode = preAuthCode;
	}

	@XmlElement(name="AuthorizerAppid")
	public String getAuthorizerAppid() {
		return authorizerAppid;
	}

	public void setAuthorizerAppid(String authorizerAppid) {
		this.authorizerAppid = authorizerAppid;
	}
	@XmlElement(name="AppId")
	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}
	@XmlElement(name="CreateTime")
	public int getCreateTime() {
		return createTime;
	}

	public void setCreateTime(int createTime) {
		this.createTime = createTime;
	}
	@XmlElement(name="InfoType")
	public String getInfoType() {
		return infoType;
	}

	public void setInfoType(String infoType) {
		this.infoType = infoType;
	}
	@XmlElement(name="ComponentVerifyTicket")
	public String getComponentVerifyTicket() {
		return componentVerifyTicket;
	}

	public void setComponentVerifyTicket(String componentVerifyTicket) {
		this.componentVerifyTicket = componentVerifyTicket;
	}

	@Override
	public String toString() {
		return "AuthBody [appid=" + appid + ", createTime=" + createTime + ", infoType=" + infoType
				+ ", componentVerifyTicket=" + componentVerifyTicket + ", authorizerAppid=" + authorizerAppid
				+ ", authorizationCode=" + authorizationCode + ", authorizationCodeExpiredTime="
				+ authorizationCodeExpiredTime + ", preAuthCode=" + preAuthCode + "]";
	}
	
	
}
